//
//  XRAudioProgressButton.h
//  Auditory
//
//  Created by 寒竹子 on 15/6/11.
//  Copyright (c) 2015年 寒竹子. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface XRAudioProgressButton : UIButton

@property (nonatomic, strong) UIColor * backColor;     // 底部画笔的颜色
@property (nonatomic, strong) UIColor * progressColor; // 绘制进度条的画笔的颜色
@property (nonatomic, assign) CGFloat lineWidth;       // 进度条的宽度
@property (nonatomic, assign) CGFloat progress;        // 进度

// 初始化方法
- (instancetype)initWithFrame:(CGRect)frame
                    backColor:(UIColor *)backColor
                    progressColor:(UIColor *)progressColor
                    lineWidth:(CGFloat)lineWidth;

/**
 * @brief  开启定时器
 *
 * @param
 *
 * @return
 */
- (void)startTimer;

/**
 * @brief  关闭定时器
 *
 * @param
 *
 * @return
 */
- (void)stopTimer;

@end